package com.rfsp.mcp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rfsp.common.base.BaseService;
import com.rfsp.mcp.mapper.FinanceMiInfoMapper;
import com.rfsp.mcp.pojo.po.FinanceMiInfoPO;

@Service
public class FinanceMiInfoService extends BaseService<FinanceMiInfoPO> {
	
	@Autowired
	FinanceMiInfoMapper financeMiInfoMapper;
	
	
	public FinanceMiInfoPO getByMiNo(String miNo) {
		FinanceMiInfoPO financeMiInfoPO = new FinanceMiInfoPO();
		financeMiInfoPO.setMiNo(miNo);
		List<FinanceMiInfoPO> financeMiInfoPOList = financeMiInfoMapper.select(financeMiInfoPO);
		if(financeMiInfoPOList != null && !financeMiInfoPOList.isEmpty()) {
			return financeMiInfoPOList.get(0);
		}else {
			return null;
		}
		
	}
	
}

